<%@include file="../commons/head.jsp"%>
<%@ page contentType="text/html; charset=utf-8"%>

<script src="${base }/js/achievement/list.js"></script>



<div class="Title">
	<h1>
		浏览
	</h1>
</div>



<s:url action="list" var="listUrl">
</s:url>
<s:url action="input" var="inputUrl">
</s:url>

<form action="${listUrl}" id="form1">

	<table width="100%" border="0">
		<tr>

			<td align="left">
				<input type="input" name="bean.student.name" id="input1"
					value="${bean.student.name }" default="请输入姓名查询" class="Search" />
				<input type="submit" value="开始查询" id="input3" />
			</td>
			<td align="right">

				<a href="${inputUrl}" style="font-weight: bolder">成绩录入</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			</td>
		</tr>
	</table>
	<input type="hidden" name="id" id="hidden1" value="${id }" />

</form>
<!-- 显示列表 -->
<table width="100%" cellspacing="1" class="SJ_Table Tcenter">
	<tr>
		<th>
			id
		</th>
		<th>
			学生名
		</th>
		<th>
			课程名称
		</th>
		<th>
			学期
		</th>
		<th>
			成绩
		</th>
		<th colspan="2">
			操作
		</th>

	</tr>
	<s:iterator value="page.list">
		<s:url action="input" var="inputUrl2">
			<s:param name="id" value="id"></s:param>
		</s:url>
		<s:url action="remove" var="removeUrl" escapeAmp="false">
			<s:param name="id" value="id" />

		</s:url>

		<tr>

			<td>
				${id }
			</td>
			<td style="text-align: center;">
				${student.name}
			</td>
			<td style="text-align: center;">
				${course.name}
			</td>
			<td style="text-align: center;">
				${term }
			</td>
			<td>
				${mark }

			</td>
			<td>

				<a href="${inputUrl2 }" id="inputForUpdate_${id }"> 修改</a>
			</td>
			<td>
				<a href="${removeUrl }" id="href_remove_${id }"> 删除</a>
			</td>
		</tr>
	</s:iterator>
</table>
<s:if test="id!=1">
	<a href="${id-1 }" id="link1">上一页</a>
</s:if>
当前页：${id}
<s:if test="id!=pageCount">
	<a href="${id+1 }" id="link2">下一页</a>
</s:if>
共${pageCount}页 跳转：
<select name="id" id="select3">
	<s:iterator begin="1" end="pageCount" var="number">
		<option value="${number}"
			<s:if test="#number==id">selected="selected"</s:if>>
			${number }
		</option>
	</s:iterator>
</select>







